function slideshow(c){
	var box=document.getElementById("imgs");
	var img1=document.getElementById("imgbox");
	var imgli=img1.getElementsByTagName("li");
	var num=document.getElementById("imgnum");
	var numli=num.getElementsByTagName("li");
	var d=imgli.length;
	var e=0;
	var lastI=0;
	var m;
	function b(){
		 m=setInterval(function(){
								   e=e+1>=d?e+1-d:e+1;
								   g();
								   },c);
		}
	function k(){
		clearInterval(m);}
	function g(){
		imgli[lastI].style.display="none";
		numli[lastI].className="";
		imgli[e].style.display="block";
		numli[e].className="current";
		lastI=e;
		}
	imgli[e].style.display="block";
	box.onmousemove=k;
	box.onmouseout=b;
	num.onmouseover=function(i){
		var j;
		 j = i ? i.target : window.event.srcElement;
		 
        if (j.nodeName === "LI") {
            e = parseInt(j.innerHTML, 10)-1;
			//alert(j.nodeName);
			//alert(e);
            g()
		   }
		};
		b();
		
	}